<?php
/**
 * Created by PhpStorm.
 * User: liuyu
 * Date: 2018/11/19
 * Time: 11:19
 */

namespace app\api\controller\v5;


use app\api\controller\v2\Auth;
use app\common\model\FortuneCache;
use app\common\model\Goods;

/*获取运势商品信息和运势下单
 * Class FortuneForGoods
 * @package app\api\controller\v5
 */

class FortuneForGoods extends Auth
{
    /**
     * 返回运势商品信息
     * @return \think\response\Json
     */
    public function index()
    {
        $data = (new FortuneCache())->getFortuneGoods($this->is_apple_pay, $this->apple_goods);

        return show(config('code.success'), '获取成功', $data);
    }

}